function searchFun () {
  let cardId = $('input[data-fn="cardId"]').val();
  if (cardId!='') {
    $.ajax({
      url: '/searchcases/search',
      type: 'post',
      data: {
        // cardId: '342901199901102822',
        cardId: cardId,
        token: $('input[data-fn="settoken"]').val()
      },
      success: function (res) {
        if (res.code === 200) {
          $('.dataContent').css('display', 'inline-block');
          $('.case_number').html(res.data.length);
          let htl = '';
          res.data.forEach(data => {
            htl += `
            <ul>
              <li class="status">
                <span>案件状态</span>
                <i class=${data.status==='已撤案'?'success':'error'}>${data.status}</i>
              </li>
              <li class="number">
                <p>
                  <img src="/images/officialweb/h5/head.png" alt="" />
                </p>
                <p>
                  <span>案号</span>
                  <span>${data.mediationNum}</span>
                </p>
              </li>
              <li>
                <span>原告</span>
                <span>${data.assetsName}</span>
              </li>
              <li>
                <span>被告信息</span>
                <span>${data.litigantName}</span>
              </li>
              <li>
                <span>调解案由</span>
                <span>${data.disputeType}</span>
              </li>
              <li>
                <span>标的金额</span>
                <span>${data.debtTotal}</span>
              </li>
            </ul>
            `
            $('.dataContent').append(htl);
          })
        } else {
          $(document).dialog({
             autoClose: 3000,
             content: res.message,
         });
        }
      },
      error: function (error) {
        $(document).dialog({
           autoClose: 1000,
           content: error,
       });
      }
    })
  } else {
    $(document).dialog({
       autoClose: 1000,
       content: '请输入证件号码',
   });
  }
};
